<template>
  <div class="form-fields">
    <div class="form-group">
      <label for="username">用户名</label>
      <input type="text" id="username" class="form-input" placeholder="请输入用户名" v-model="username">
    </div>
    <div class="form-group">
      <label for="password">密码</label>
      <input type="password" id="password" class="form-input" placeholder="请输入密码" v-model="userpasswd">
    </div>
    <button class="login-button" @click="login">登录</button>
  </div>
</template>

<script>
import axios from 'axios';
export default {
  name: 'InputArea',
  data(){
    return {
      username:'',
      userpasswd:''
    }
  },
  methods:{
    login(){
      axios.get()
    }
  }
}
</script>

<style scoped>
.form-fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

label {
  font-size: 14px;
  color: #333;
  text-align: left;
}

.form-input {
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: #0073FF;
  box-shadow: 0 0 0 2px rgba(0, 115, 255, 0.1);
}

.login-button {
  margin-top: 15px;
  padding: 14px;
  background-color: #0073FF;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.login-button:hover {
  background-color: #0052CC;
}

.login-button:active {
  transform: scale(0.98);
}
</style>